package meng.spring.test1.ioc;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/3/15 1:15 PM
 */
public class Test4 {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring-ioc.xml");
        OneInterface service = context.getBean("oneInterface", OneInterface.class);
        service.say("Hello");

    }
}
